<?php

function select_itec_database() {
    $itec_database = array(
        'database' => 'itec_database',
        'username' => 'root', // assuming this is necessary
        'password' => '', // assuming this is necessary
        'host' => 'localhost', // assumes localhost
        'driver' => 'mysql', // replace with your database driver
        array( 
      PDO::MYSQL_ATTR_USE_BUFFERED_QUERY => true)
    );
    Database::addConnectionInfo('itec', 'default', $itec_database);
    
    db_set_active('itec');
}

function select_drupal_database(){
    db_set_active();
}
